package com.hxkj.service.article;

import com.hxkj.domain.po.Companyinfo;
import com.platform.common.domain.result.ResultMessageStruct;
import com.platform.common.domain.result.ResultPageStruct;
import com.platform.common.domain.to.PageTo;

/**
 * 合作公司Service
 * <p>
 * Created by yaosy on 2018年6月8日13:52:59
 */
public interface CompanyInfoService {

    /**
     * 查询合作公司接口
     * @param companyinfo,pageParam
     * @return
     * @throws Exception
     */
    ResultPageStruct<Companyinfo> getList(Companyinfo companyinfo, PageTo pageTo)throws Exception;

    /**
     * 查询单个合作公司接口
     * @param companyinfo
     * @return
     * @throws Exception
     */
    Companyinfo get(Companyinfo companyinfo)throws Exception;

    /**
     * 新增合作公司接口
     * @param companyinfo
     * @return
     * @throws Exception
     */
    ResultMessageStruct save(Companyinfo companyinfo)throws Exception;

    /**
     * 公司排序
     * @param companyinfo
     * @return
     * @throws Exception
     */
    ResultMessageStruct sort(Companyinfo companyinfo)throws Exception;

    /**
     * 修改合作公司接口
     * @param companyinfo
     * @return
     * @throws Exception
     */
    void modify(Companyinfo companyinfo)throws Exception ;

    /**
     *  删除模板
     * @param companyinfo
     * @return
             * @throws Exception
     */
    ResultMessageStruct remove(Companyinfo companyinfo)throws Exception;

}
